import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
import './assets/css/mobile.css'
Vue.use(MintUI);
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面meta */
    if(to.meta.content){
        let head = document.getElementsByTagName('head');
        let meta = document.createElement('meta');
        meta.content = to.meta.content;
        head[0].appendChild(meta)
    }
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title;
    }
    next()
});



new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
